<template>
  <!-- <nav>
    <router-link to="/">Home</router-link> |
    <router-link to="/about">About</router-link>
  </nav> -->
  <!-- 挂载点根据路由挂载组件 -->
  <router-view />
</template>

<style lang="less">
* {
  margin: 0;
  padding: 0;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
}
</style>
<script lang="ts" setup>
import * as echarts from 'echarts';
import { provide } from 'vue';

// 依赖注入,可以让后代元素都使用echats,统一注入对象
provide('echarts', echarts);
</script>